package com.nervenets.general.enumeration;

import io.swagger.annotations.ApiModel;

@ApiModel("操作类型")
public enum SqlFun implements Enums {
    none("无"),
    sum("求总和值"),
    avg("求平均值"),
    max("求最大值"),
    min("求最小值"),
    count("求总数值"),
    countDistinct("求总数值(去重)"),
    ;

    private final String text;

    SqlFun(String text) {
        this.text = text;
    }

    @Override
    public String getText() {
        return text;
    }

    @Override
    public String getValue() {
        return this.name();
    }
}
